import request from '@/utils/request'

// 查询权利义务告知书列表
export function list(query) {
  return request({
    url: '/archives/duty/list',
    method: 'get',
    params: query
  })
}

// 查询权利义务告知书详细
export function get(rightDutyId) {
  return request({
    url: '/archives/duty/' + rightDutyId,
    method: 'get'
  })
}

// 新增权利义务告知书
export function add(data) {
  return request({
    url: '/archives/duty',
    method: 'post',
    data: data
  })
}

// 修改权利义务告知书
export function update(data) {
  return request({
    url: '/archives/duty',
    method: 'put',
    data: data
  })
}

// 删除权利义务告知书
export function del(rightDutyId) {
  return request({
    url: '/archives/duty/' + rightDutyId,
    method: 'delete'
  })
}
